﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CheccCoverplateCulvertAssemble.Operation.HXD
{
    internal class WingWall
    {
        public static void CreateWingWall(string unparsed)
        {
            string solidName = "盖板涵";
            CheccWingWallData WingWallData = CheccWingWallData.Instance;
            WingWallData.angle_Lmax = 45;
            WingWallData.angle_Rmax = 35;
            WingWallData.angle_Lmin = 25;
            WingWallData.angle_Rmin = 15;
            CheccWingWall.Create();
            //八字墙
            if (null != CheccWingWall.wingWall_L.Item1)
            {
                CheccWingWall.wingWall_L.Item1.AddToModel();
                BodyTexture.AddAliformLevelTexture(CheccWingWall.wingWall_L.Item1, solidName);
                BodyProperty.ToRebar(CheccWingWall.wingWall_L.Item1, solidName + "_八字墙_构造体", "八字墙 ", solidName);
            }
            //八字墙基础
            if (null != CheccWingWall.wingWall_L.Item2)
            {
                CheccWingWall.wingWall_L.Item2.AddToModel();
                BodyTexture.AddBasicsLevelTexture(CheccWingWall.wingWall_L.Item2, solidName);
            }
            //八字墙铺砌
            if (null != CheccWingWall.wingWall_L.Item3)
            {
                CheccWingWall.wingWall_L.Item3.AddToModel();
                BodyTexture.AddPaveAndCutoffWallLevelTexture(CheccWingWall.wingWall_L.Item3, solidName);
                BodyProperty.ToRebar(CheccWingWall.wingWall_L.Item3, solidName + "_铺砌_构造体", "铺砌", solidName);
            }
            //八字墙截水墙
            if (null != CheccWingWall.wingWall_L.Item4)
            {
                CheccWingWall.wingWall_L.Item4.AddToModel();
                //图层 材质
                BodyTexture.AddPaveAndCutoffWallLevelTexture(CheccWingWall.wingWall_L.Item4, solidName);
                //赋予属性
                BodyProperty.ToRebar(CheccWingWall.wingWall_L.Item4, solidName + "_截水墙_构造体", "截水墙", solidName);
            }
            //八字墙
            if (null != CheccWingWall.wingWall_L.Item5)
            {
                CheccWingWall.wingWall_L.Item5.AddToModel();
                BodyTexture.AddAliformLevelTexture(CheccWingWall.wingWall_L.Item5, solidName);
                BodyProperty.ToRebar(CheccWingWall.wingWall_L.Item5, solidName + "_八字墙_构造体", "八字墙 ", solidName);
                // BodyProperty.attachDataBlockToCubeAliform(CheccWingWall.wingWall_L.Item5, CheccWingWall.wingWall_L.Item6,"","", "", "", "", "", "", "", "", "", solidName);
            }
            //八字墙基础
            if (null != CheccWingWall.wingWall_L.Item6)
            {
                CheccWingWall.wingWall_L.Item6.AddToModel();
                BodyTexture.AddBasicsLevelTexture(CheccWingWall.wingWall_L.Item6, solidName);
            }
        }
    }
}
